package com.hk.huakangcompany.model;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: zhe
 * @Date: 2021/6/5 13:09
 * @Statement: 会员表
 */
public class User implements Serializable {

    private Integer id;
    private String username;
    private String email;
    private String password;
    private Integer sex;//0:男 1：女 2:保密
    private String birthday; //生日
    private String hobby;//爱好
//    不与数据库相匹配，仅用于模糊查询
    private String[] hobbys;
    private String phone;
    private String site;
    private String gmtCreate;
    private String gmtModified;
    private Integer state;//0启用 1：停用

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public String getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(String gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(String gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String[] getHobbys() {
        return hobbys;
    }

    public void setHobbys(String[] hobbys) {
        this.hobbys = hobbys;
    }

    public User(Integer id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }

    public User(String email, String password) {
        this.email = email;
        this.password = password;
    }


    public User(Integer id, String username, String email, String password, Integer sex, String birthday, String hobby, String[] hobbys, String phone, String site, String gmtCreate, String gmtModified, Integer state) {
        this.id = id;
        this.username = username;
        this.email = email;
        this.password = password;
        this.sex = sex;
        this.birthday = birthday;
        this.hobby = hobby;
        this.hobbys = hobbys;
        this.phone = phone;
        this.site = site;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
        this.state = state;
    }

    public User() {

    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", email='" + email + '\'' +
                ", password='" + password + '\'' +
                ", sex=" + sex +
                ", birthday='" + birthday + '\'' +
                ", hobby='" + hobby + '\'' +
                ", hobbys='" + hobbys + '\'' +
                ", phone='" + phone + '\'' +
                ", site='" + site + '\'' +
                ", gmtCreate='" + gmtCreate + '\'' +
                ", gmtModified='" + gmtModified + '\'' +
                ", state=" + state +
                '}';
    }
}
